package com.orderplus.opshop.core.exception;

import lombok.Data;
import lombok.ToString;

/**
 * 自定义公共异常
 * Title:
 * Description:
 * Company: Copyright @ 2019 OrderPlus 版权所有
 *
 * @version 1.0 初稿
 * @author: mhj
 * @date: 2014年12月31日上午1:33:36
 */
@Data
@ToString(callSuper = true)
public class CommonException extends RuntimeException {
    private String code;

	public CommonException(String message, Throwable cause) {
		super(message, cause);
	}

    public CommonException(String code, String message) {
        super(message);
        this.code = code;
    }
}
